var id = location.search.split("=")[1];
var listUrl = `http://192.168.4.18:3000/comment/music?id=${id}&limit=1`;
ajax({
    url:listUrl,
    method:"get",
    success:res=>{
        var arr = res.hotComments;
        console.log(arr);
            arr.forEach(item=>{

                var htmlItem = `
                
                     <div class="tu">
                        <div class="tu-left"><img class="pic-jpg" src="${item.user.avatarUrl}"></div>
                        
                        <div class="tu-right">
                            <div class="sweet">
                                <a class="nickname">${item.user.nickname}</a>
                                <span class="plct">:${item.content}</span>
                            </div>
                            <div class="bt">
                                <div class="bottom-left">2020年12月20日</div>
                                <div class="bottom-right">
                                    <img src="../images/zan.png">
                                    <span>&nbsp;&nbsp;${item.likedCount}&nbsp;&nbsp;</span>|&nbsp;&nbsp;回复</span>
                                </div>

                            </div>
                        </div>
                    </div>
                
                 `
                 $("#comment").append(htmlItem);
            })
         }
     })